package com.ls.lserp.modules.material.dao;


import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.common.entity.OgnizationEntity;
import com.ls.lserp.modules.material.entity.SlopworkInRequest;

/**
 * @ClassName: InventoryRequest
 * @Description: 分类接口
 * 
 * @author 
 * @date 2017年04月14日 
 *
 */

@MyBatisDao
public interface SlopworkInRequestDao extends CrudDao<SlopworkInRequest>{
	/**
	  * @Title: findClothesRequestDetailList
	  * @Description: 查看画面明细
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> findClothesRequestDetailList(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: findClothesRequestDetailList
	  * @Description: 查看画面明细
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> findShowRequestDetailList(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: findClothesRequestDetailList
	  * @Description: 创建画面明细
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> findCreateRequestDetailList(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: getProductionList
	  * @Description: 生产制单
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> getProductionList();
	/**
	  * @Title: getFabricatList
	  * @Description: 加工厂
	  * @param @return
	  * @return List<OgnizationEntity> 
	  * @throws
	  */
	public List<OgnizationEntity> getFabricatList();
	/**
	  * @Title: getContractProcessingList
	  * @Description: 外发合同单号
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> getContractProcessingList(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: getStyleList
	  * @Description: 款式
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return List<SlopworkInRequest> 
	  * @throws
	  */
	public List<SlopworkInRequest> getStyleList(SlopworkInRequest slopworkInRequest);
	
	/**
	  * @Title: getProduction
	  * @Description: 生产制单
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return SlopworkInRequest 
	  * @throws
	  */
	public SlopworkInRequest getProduction(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: getContractNo
	  * @Description: 通过外发合同明细表，查找客户合同号
	  * @param @return
	  * @return SlopworkInRequest
	  * @throws
	  */
	public SlopworkInRequest getContractNo(SlopworkInRequest slopworkInRequest);
	/**
	 * 入库申请单
	 * @param inventoryRequest
	 * @return
	 */
	public int insertInventoryRequest(SlopworkInRequest slopworkInRequest);
	
	/**
	 * 入库申请单详细
	 * @param inventoryRequest
	 * @return
	 */
	public int insertInventoryRequestDetails(SlopworkInRequest slopworkInRequest);
	/**
	  * @Title: deleteRequestDetails
	  * @Description: 物理删除入库申请明细
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return int 
	  * @throws
	  */
	public int deleteRequestDetails(SlopworkInRequest slopworkInRequest);
	
	/**
	  * @Title: updateInventoryRequest
	  * @Description: 更新入库申请
	  * @param @param slopworkInRequest
	  * @param @return
	  * @return int 
	  * @throws
	  */
	public int updateInventoryRequest(SlopworkInRequest slopworkInRequest);

	public List<SlopworkInRequest>  getSamplyData(Long id);
	/**
	 * @Title: findClothesRequestDetailList
	 * @Description: 查看样品画面明细
	 * @param @param slopworkInRequest
	 * @param @return
	 * @return List<SlopworkInRequest>
	 * @throws
	 */
	public List<SlopworkInRequest> findSamplyShowRequestDetailList(SlopworkInRequest slopworkInRequest);

	public List<SlopworkInRequest>  getSamplyDataCreate(Long id);
}
